

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8">

<title>企业员工管理系统</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" type="text/css"
	href="themes/bootstrap/easyui.css">
<link rel="stylesheet" type="text/css" href="themes/icon.css">
<link rel="stylesheet" type="text/css" href="themes/color.css">
<script type="text/javascript" src="js/jquery.min.js"></script>
<script src="bootstrap/js/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="js/easyui-lang-zh_CN.js"></script>
<script type="text/javascript">
	$(function() {
		//树形菜单展示
		$('#tt')
				.tree(
						{
							url : "authAssignment",
							queryParams : {
								pid : -1
							},
							onLoadSuccess : function(node, data) {
								$("#tt").tree('expandAll');
							},
							onClick : function(node) {

								//	alter(111);
								var flag = $("#tb").tabs("exists", node.text);
								if (node.attributes.url) {
									if (!flag) {
										$("#tb").tabs("add",{
															title : node.text,
															content : "<iframe  width='100%' height='100%' frameborder='0' src='"
																	+ node.attributes.url
																	+ "'></iframe>",
															closable : true
															
														});
									}
									else{
										 
										$('#tb').tabs('select',node.text) 
									}
								}
							}
						});
	});
</script>
</head>
<body class="easyui-layout">
	<!-- 上左右布局 -->
	<div data-options="region:'north',title:'企业员工信息管理系统',split:false"
		style="height: 150px;">
		<div align="center">
			<h1>企业员工信息管理系统</h1>
		</div>
	</div>
	<div
		data-options="region:'west',title:'${currentUser.uname},欢迎您',split:false,collapsible:false"
		style="width: 200px;">
		<ul id="tt"></ul>
	</div>
	<div data-options="region:'center',border:false"
		style="padding: 5px; background: #eee; overflow:hidden">
		<!-- tabs框 -->
		<div id="tb" class="easyui-tabs" data-options="fit:true,border:false"></div>
	</div>

</body>
</html>